import java.awt.Color;

public class GPlayer {
	private int ID;
	private static int allID=0;
	private String name;
	private Color playerColor;
	private int tally;
	
	public GPlayer(){
		allID++;
		ID=allID;
		name="Player"+ID;
		playerColor=Color.red;
		tally=0;
	}
	
	public int getID(){
		return ID;
	}
	
	public void setName(String newName){
		name=newName;
	}
	
	public String getName(){
		return name;
	}
	
	public void setColor(Color newColor){
		playerColor=newColor;
	}
	
	public Color getColor(){
		return playerColor;
	}
	
	public void plusTally(int tempTally){
		tally=tally+tempTally;
	}
	
	public int getTally(){
		return tally;
	}
}
